package com.smarkparking.service;

import com.smarkparking.pojo.Parking;

import java.util.List;

/**
 * @author 刘涛
 * @create 2021/11/18 9:33
 */
public interface ParkingService {
    public List<String> findParkingAddress();

    public List<Parking> findParkingByAddress(String address);

    /**
     * 根据id修改车位为占用
     *
     * @param id 需要修改的车位的id
     */
    public void updateParkingStateClose(Integer id);

    public void updateParkingStateOpen(Integer id);

    public Parking selectById(Integer id);

    /**
     * 根据车位查询信息
     *
     * @param parkingSpaceNumber 车位
     * @return 车位信息
     */
    public Parking selectByParkingNumber(String parkingSpaceNumber);

    public void deleteParking(Integer id);

    public boolean updateParking(Integer id, String address, String parkingSpaceNumber, Double price, Integer state);

    public boolean addParking(String address, String parkingSpaceNumber, Double price, Integer state);

    public List<Parking> findAll();
}
